# -*- coding: utf-8 -*-：
from flask import Flask
from flask_restful import Resource, Api


app = Flask(__name__)
api = Api(app)


class lamb(Resource):
    def get(self, num):
        print num
        c = "nihao"
        return {'lamb返回参数': c}


api.add_resource(lamb, '/lamb/num=<num>')


class HelloWorld(Resource):
    def get(self):
        c = "HelloWorld"
        return {'hello': c}


api.add_resource(HelloWorld, '/')

if __name__ == '__main__':
    app.debug = True
    app.run(host='0.0.0.0')
